package com.aaa.exceptions;

import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;

/**
 * @author : luoBo
 */

@EqualsAndHashCode(callSuper = true)
@Data
public class CustomException extends RuntimeException implements Serializable {

    private String exMsg;

    private Integer exCode;

    public CustomException(String exMsg) {
        this.exMsg = exMsg;
        this.exCode = 500;
    }
    public CustomException(Integer exCode, String exMsg) {
        this.exMsg = exMsg;
        this.exCode = exCode;
    }
}
